﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using YouWei.Infrastructure.Entity;

namespace YouWei.Infrastructure.Models
{
    public class UserCardContentDto : UserCardContent
    {

        /// <summary>
        /// ICON地址
        /// </summary>
        public string IconUrl
        {
            get; set;
        }

        /// <summary>
        /// 是否需要定位
        /// </summary>
        public string CategoryName
        {
            get
            {
                return Utility.EnumHelper.GetEnumDesc(typeof(Enums.IsLocationName), Category);
            }
        }

        /// <summary>
        /// 类型名称
        /// </summary>
        public string CardTypeName
        {
            get
            {
                return Utility.EnumHelper.GetEnumDesc(typeof(Enums.UserCardContentCardType), CardType);
            }
        }

        /// <summary>
        /// 图片地址
        /// </summary>
        public string ImgDetailUrl
        {
            get; set;
        }
    }
}